<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="/layui/css/layui.css">
</head>

<body>

  <form class="layui-form" action="./update" th:each="cash:${cashes}" method="POST">
    <div class="layui-form-item">
      <label class="layui-form-label">收款明细单编号</label>
      <div class="layui-input-inline">
        <input type="text" name="id" th:value="${cash.id}" lay-verify="required" class="layui-input"
          readonly="readonly">
      </div>
    </div>
    <div class="layui-form-item">
      <!-- <label class="layui-form-label">状态</label> -->
      <div class="layui-input-inline">
        <input type="hidden" name="status" th:value="${cash.status}" class="layui-input" readonly="readonly">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">订单编号</label>
      <div class="layui-input-inline">
        <input type="text" name="costid" th:value="${cash.costid}" lay-verify="required" class="layui-input"
          readonly="readonly">
      </div>
    </div>
    <div class="layui-form-item">
      <!-- <label class="layui-form-label">成本</label> -->
      <div class="layui-input-inline">
        <input type="hidden" name="cost" th:value="${cash.cost}" lay-verify="required" class="layui-input"
          readonly="readonly">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">税费单号</label>
      <div class="layui-input-inline">
        <input type="text" name="taxid" th:value="${cash.taxid}" lay-verify="required" class="layui-input"
          readonly="readonly">
      </div>
    </div>
    <div class="layui-form-item">
      <!-- <label class="layui-form-label">税费</label> -->
      <div class="layui-input-inline">
        <input type="hidden" name="tax" th:value="${cash.tax}" lay-verify="required" class="layui-input "
          readonly="readonly">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">应收金额</label>
      <div class="layui-input-inline">
        <input type="text" name="fee" th:value="${cash.fee}" lay-verify="required" class="layui-input"
          readonly="readonly">
      </div>
      <div class="layui-form-mid layui-word-aux">元</div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">实收金额</label>
      <div class="layui-input-inline">
        <input type="text" name="money" th:value="${cash.money}" lay-verify="required"
          class="layui-input layui-bg-green">
      </div>
      <div class="layui-form-mid layui-word-aux">元</div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">银行流水号</label>
      <div class="layui-input-inline">
        <input type="text" name="cashid" th:value="${cash.cashid}" lay-verify="required"
          class="layui-input layui-bg-green">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">付款帐户</label>
      <div class="layui-input-inline">
        <input type="text" name="account_from" th:value="${cash.account_from}" lay-verify="required"
          class="layui-input layui-bg-green">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">收款帐户</label>
      <div class="layui-input-inline">
        <input type="text" name="account_to" th:value="${cash.account_to}" lay-verify="required" class="layui-input"
          readonly="readonly">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">经手人</label>
      <div class="layui-input-inline">
        <input type="text" name="staff" th:value="${cash.staff}" lay-verify="required" class="layui-input"
          readonly="readonly">
      </div>
      <div class="layui-form-mid layui-word-aux">仅限本人操作</div>
    </div>

    <div class="layui-form-item layui-form-text">
      <label class="layui-form-label">备注</label>
      <div class="layui-input-block">
        <textarea name="note" placeholder="请输入内容" th:text="${cash.note}"
          class="layui-textarea layui-bg-green"></textarea>
      </div>
    </div>
    <div class="layui-form-item">
      <div class="layui-input-block">
        <button class="layui-btn" lay-submit lay-filter="formDemo">确认已支付</button>
        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
      </div>
    </div>
  </form>


  <script src="/layui/layui.js"></script>
  <script>
    layui.use('form', function () {
      var form = layui.form; //只有执行了这一步，部分表单元素才会自动修饰成功
      //https://www.layui.com/doc/base/faq.html
      form.render();
    });

  </script>
</body>

</html>